package com.xiaoshuidi.cloud.module.rooms.controller.admin.roomhouse.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author hans.zhang
 */
@Data
@Schema(description = "分散式编辑房源信息请求对象")
public class NoConcentratedRoomHouseEditReqVO {

    @Schema(description = "省")
    private String province;
    @Schema(description = "市")
    private String city;
//    @Schema(description = "区")
    @NotNull(message = "地区不能为空")
    private String district;
    @Schema(description = "街道")
    private String street;
//    @NotNull(message = "详细地址不能为空")
    @Schema(description = "详细地址")
    private String address;

    @Schema(description = "小区名称")
    private String areaName;

    @Schema(description = "是否整租")
    @NotNull(message = "是否整租不能为空")
    private Boolean isWhole;

    @Schema(description = "房源id")
    private Long roomHouseId;

    @Valid
    @Schema(description = "房源信息")
    private NoConcentratedEditRoomHouseDto masterRoomInfo;

    @Valid
    @NotNull(message = "房间信息不能为空")
    @Schema(description = "子房间信息")
    private List<NoConcentratedRoomInfoDto> slaveRoomInfo;
    @Schema(description = "备案信息")
    private RecordInfoDto recordInfoDto;

    @Schema(description = "图片url,多张采用英文逗号分割")
    @Size(min = 0, max = 500, message = "图片url不能超过500字符")
    private String picUrl;

    @Schema(description = "视频URL，多条采用英文逗号分割")
    @Size(min = 0, max = 500, message = "视频URL不能超过500字符")
    private String videoUrl;

    @Schema(description = "vr封面url")
    @Size(min = 0, max = 500, message = "vr封面url不能超过500字符")
    private String vrPicUrl;


    @Schema(description = "vr URL,多条采用英文逗号分割")
    @Size(min = 0, max = 500, message = "vr URL不能超过500字符")
    private String vrUrl;

    @Schema(description = "独用设施")
    private String roomEquipment;

    @Schema(description = "房源类型(用途): 办公室、住房")
    private String roomUsage;
}
